package com.moon.robot.mapper;

import com.forte.qqrobot.anno.depend.Beans;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;



import java.util.List;

@Mapper
@Beans
public interface GroupMapper {
    @Select("SELECT groups FROM groups")
    List<String> findAllGroup();

    @Insert("INSERT INTO groups(groups) VALUES(#{group})")
    Integer openRobot(String group);

    @Delete("DELETE FROM groups WHERE groups = #{group}")
    Integer closeRobot(String group);
}
